package com.xiaomi.mapper;

import com.xiaomi.entity.Manager;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName ManagerMapper
 * @Description TODO
 * @Author Rzcy
 * @Date 2021/11/29 11:15
 * @Version 1.0
 **/
public interface ManagerMapper {
    List<Manager> pageSearch(@Param("startRow") Integer startRow,
                             @Param("limit") Integer limit,
                             @Param("managerId") Integer managerId,
                             @Param("managerName") String managerName);
    Integer getCount( @Param("managerId") Integer managerId,
                      @Param("managerName") String managerName);
    void insert(Manager manager);
    void update(Manager manager);

    void delete(@Param("managerId")Integer managerId);
}
